package nineteen;

/**
 * @author zzb
 * @since 2021-01-14
 */

//ConcreteObserver
public class HuangPuPoliceman implements Policeman {

  @Override
  public void action(Citizen ci) {
    String help = ci.getHelp();
    if ("normal".equals(help)) {
      System.out.println("一切正常, 不用出动");
    }
    if ("unnormal".equals(help)) {
      System.out.println("有犯罪行为, 黄埔警察出动!");
    }
  }
}
